package com.vineetmanohar.nitrogen;

/**
 * The context needed for code generation. Not sure what it is right now, but
 * this class encapsulates everything needed for code generation.
 * 
 * @author vineetmanohar
 */
public class CodeGenerationContext {
	private CodeGenerationContext parent;

	public CodeGenerationContext getParent() {
		return parent;
	}

	public void setParent(CodeGenerationContext parent) {
		this.parent = parent;
	}

	private ObjectModel model;

	public static CodeGenerationContext createContextFromObjectModel(
			ObjectModel model) {
		return new CodeGenerationContext(model);
	}

	private CodeGenerationContext(ObjectModel model) {
		this.model = model;
	}

	public ObjectModel getObjectModel() {
		return this.model;
	}
}